<?php

namespace support;


class Constant
{
    // 1-会长 2-副会长 3-长老 4-护法 5-普通成员
    const JOB_1 = 1;
    const JOB_2 = 2;
    const JOB_3 = 3;
    const JOB_4 = 4;
    const JOB_5 = 5;
    const GUILD_JOBS = [
        self::JOB_1 => '会长',
        self::JOB_2 => '副会长',
        self::JOB_3 => '长老',
        self::JOB_4 => '护法',
        self::JOB_5 => '成员',
    ];
    const GUILD_JOBS_NUM = [
        self::JOB_1 => 1,
        self::JOB_2 => 2,
        self::JOB_3 => 3,
        self::JOB_4 => 4,
        self::JOB_5 => 500,
    ];

    //邮件类型
    //邀请加公会
    const MAIL_TYPE_1 = 1;
    //交易行购买物品
    const MAIL_TYPE_2 = 2;
    //交易行物品售出
    const MAIL_TYPE_3 = 3;
    //交易行物品下架
    const MAIL_TYPE_4 = 4;
    //系统发送
    const MAIL_TYPE_5 = 5;

    /****交易行物品分类***/
    //武器
    const TRADE_ITEM_CATE_1 = 1;
    //防具
    const TRADE_ITEM_CATE_2 = 2;
    //饰品
    const TRADE_ITEM_CATE_3 = 3;
    //药水
    const TRADE_ITEM_CATE_4 = 4;
    //杂货
    const TRADE_ITEM_CATE_5 = 5;

    //最新上架
    const TRADE_ITEM_ORDER_BY_1 = 1;
    //最早上架
    const TRADE_ITEM_ORDER_BY_2 = 2;
    //价格最高
    const TRADE_ITEM_ORDER_BY_3 = 3;
    //价格最低
    const TRADE_ITEM_ORDER_BY_4 = 4;
    //数量最多
    const TRADE_ITEM_ORDER_BY_5 = 5;
    //数量最少
    const TRADE_ITEM_ORDER_BY_6 = 6;

    //交易手续费
    const SERVICE_CHARGE = 20;

    const SYSTEM_NAME = '系统消息';

    const CACHE_ACCESS_LOCK = 'access_lock_';

    const RECORD_ITEM = 'record-item';
    const RECORD_USER_LOGIN_LOG = 'record-user-login-log';
    const RECORD_USER_RES_LOG = 'record-user-res-log';
    const LEVEL_LOG = 'level-log';

    //获得
    const ITEM_LOG_TYPE_1 = 1;
    //强化
    const ITEM_LOG_TYPE_2 = 2;
    //打孔
    const ITEM_LOG_TYPE_3 = 3;
    //镶嵌宝石
    const ITEM_LOG_TYPE_4 = 4;
    //升星
    const ITEM_LOG_TYPE_5 = 5;
    //洗练
    const ITEM_LOG_TYPE_6 = 6;
    //神秘商店获得
    const ITEM_LOG_TYPE_7 = 7;

    // 1-钢铁意志 2-魔力抵御 3-生命本源 4-通宝 5-法力本源 6-圣疗 7-破之本源 8-减伤本源
    const TECHNOLOGY_1 = 1;
    const TECHNOLOGY_2 = 2;
    const TECHNOLOGY_3 = 3;
    const TECHNOLOGY_4 = 4;
    const TECHNOLOGY_5 = 5;
    const TECHNOLOGY_6 = 6;
    const TECHNOLOGY_7 = 7;
    const TECHNOLOGY_8 = 8;
    const TECHNOLOGYS = [
        self::TECHNOLOGY_1 => '钢铁意志',
        self::TECHNOLOGY_2 => '魔力抵御',
        self::TECHNOLOGY_3 => '生命本源',
        self::TECHNOLOGY_4 => '通宝',
        self::TECHNOLOGY_5 => '法力本源',
        self::TECHNOLOGY_6 => '圣疗',
        self::TECHNOLOGY_7 => '破之本源',
        self::TECHNOLOGY_8 => '减伤本源',

    ];

}
